package com.xy.biz.base.domain.converter;

import com.xy.biz.base.domain.query.RegionQuery;
import com.xy.biz.base.domain.req.ListRegionRequest;
import com.xy.tool.util.BeanUtilsEx;

/**
 * 
 * 
 * @author zsp
 * @date 2020-8-26
 */
public class RegionConverter {
	
	public static RegionQuery toQuery(ListRegionRequest source) {
		if(null == source) {
			return null;
		}
		RegionQuery target = new RegionQuery(source.getPageIndex(), source.getPageSize());
		BeanUtilsEx.copyProperties(source, target);
		return target;
	}

}
